import Cookie from 'js-cookie'
class LoginStateManager {
  public static setToken(key: string, value: string, time?: number) {
    Cookie.set(key, value, { expires: time || 7 })
  }

  public static getToken() {
    return Cookie.get('auth-token')
  }
}

export default LoginStateManager
